require.config({
	shim:{
        'echarts':{exports:'echarts'},
        'calendar':{exports:'calendar'}
    },
    paths : {
        //"vue":"lib/vue",
        "jquery":"lib/jquery",
        'echarts':'lib/echarts.common.min',
        "cmd":"cmd",
        "calendar":"lib/datepicker/WdatePicker",
    }
});

require(['echarts','jquery','cmd','calendar'],function(echarts,$){

//get top menu
var token = detectToken();


//默认加载设备列表
$.vloading.show();
$.ajax({
        type:'POST',
        url:urls.checkMachinelist,
        dataType:'json',
        data:{token:token,pageNow:1,pageSize:"8"},
        async:true,
        success:function(result){
           $.vloading.remove();
            if(result.code=="1"){
                var machineEchartHtml ='';
                var Mpa = [];
                var recordsLength = result.data.records.length;
                for(var i=0;i<result.data.records.length;i++){
                    //for START//
                    //在线
                    if(result.data.records[i].is_connected=="1"){
                        if(result.data.records[i].machine_status=="1"){//报警
                            machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                              <div class="machinelistEtop machineWarning"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-signal pdr5"></i></div>\n\
                              <div class="machinelistEchart">\n\
                                <div class="machinelistEchartBg">\n\
                                  <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                </div>\n\
                              </div>\n\
                              <div class="machinelistEelectric">\n\
                                <ul class="clearfix">\n\
                                  <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                  <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                  <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                </ul>\n\
                              </div>\n\
                              <div class="machinelistEcompany">\n\
                                <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                              </div>\n\
                            </div></a>';
                        }else if(result.data.records[i].machine_status=="0"){//停止
                            machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                              <div class="machinelistEtop machineStop"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-signal pdr5"></i></div>\n\
                              <div class="machinelistEchart">\n\
                                <div class="machinelistEchartBg">\n\
                                  <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                </div>\n\
                              </div>\n\
                              <div class="machinelistEelectric">\n\
                                <ul class="clearfix">\n\
                                  <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                  <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                  <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                </ul>\n\
                              </div>\n\
                              <div class="machinelistEcompany">\n\
                                <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                              </div>\n\
                            </div></a>';
                        }else{//2-7均属运行状态
                            machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                              <div class="machinelistEtop machineOnline"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-signal pdr5"></i></div>\n\
                              <div class="machinelistEchart">\n\
                                <div class="machinelistEchartBg">\n\
                                  <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                </div>\n\
                              </div>\n\
                              <div class="machinelistEelectric">\n\
                                <ul class="clearfix">\n\
                                  <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                  <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                  <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                </ul>\n\
                              </div>\n\
                              <div class="machinelistEcompany">\n\
                                <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                              </div>\n\
                            </div></a>';                          

                        }
                    }if(result.data.records[i].is_connected=="0"){//离线
                        if(result.data.records[i].machine_status=="1"){//报警
                            machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                              <div class="machinelistEtop machineWarning"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-nosignal pdr5"></i></div>\n\
                              <div class="machinelistEchart">\n\
                                <div class="machinelistEchartBg">\n\
                                  <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                </div>\n\
                              </div>\n\
                              <div class="machinelistEelectric">\n\
                                <ul class="clearfix">\n\
                                  <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                  <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                  <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                </ul>\n\
                              </div>\n\
                              <div class="machinelistEcompany">\n\
                                <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                              </div>\n\
                            </div></a>';
                        }else if(result.data.records[i].machine_status=="0"){//停止
                            machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                              <div class="machinelistEtop machineStop"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-nosignal pdr5"></i></div>\n\
                              <div class="machinelistEchart">\n\
                                <div class="machinelistEchartBg">\n\
                                  <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                </div>\n\
                              </div>\n\
                              <div class="machinelistEelectric">\n\
                                <ul class="clearfix">\n\
                                  <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                  <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                  <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                </ul>\n\
                              </div>\n\
                              <div class="machinelistEcompany">\n\
                                <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                              </div>\n\
                            </div></a>';
                        }else{//2-7均属运行状态
                            machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                              <div class="machinelistEtop machineOnline"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-nosignal pdr5"></i></div>\n\
                              <div class="machinelistEchart">\n\
                                <div class="machinelistEchartBg">\n\
                                  <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                </div>\n\
                              </div>\n\
                              <div class="machinelistEelectric">\n\
                                <ul class="clearfix">\n\
                                  <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                  <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                  <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                </ul>\n\
                              </div>\n\
                              <div class="machinelistEcompany">\n\
                                <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                              </div>\n\
                            </div></a>';               

                        }
                    }
                    if(result.data.records[i].pressure==undefined){
                        console.log("now pressure is:"+result.data.records[i].pressure);
                        Mpa.push("0.00");
                    }else{
                        Mpa.push(result.data.records[i].pressure);
                    }
                    //for END//
                    
                }
                $(".machineListbigBox").html(machineEchartHtml);
                //分页触发（非点击搜索情况）
                pageNav.go(1,result.data.pageCount);
                pageNav.fn = function(p,pn){
                  if($(".StartSearchMachies").attr("data-id")==0){
                     getMachinelists(p);                   
                   }

                };
                //总记录数
                $(".allRecord").html(result.data.rowCount);
                $(".eachpageshowNums").html("8");
                $(".allpagesNums").html(result.data.pageCount);
                    /***chart模拟数据逻辑START***/
                    if(recordsLength==8){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var myChart3 = echarts.init(document.getElementById('machinelistEchartShow3'));
                        var myChart4 = echarts.init(document.getElementById('machinelistEchartShow4'));
                        var myChart5 = echarts.init(document.getElementById('machinelistEchartShow5'));
                        var myChart6 = echarts.init(document.getElementById('machinelistEchartShow6'));
                        var myChart7 = echarts.init(document.getElementById('machinelistEchartShow7'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var percent3 = Mpa[3];
                        var percent4 = Mpa[4];
                        var percent5 = Mpa[5];
                        var percent6 = Mpa[6];
                        var percent7 = Mpa[7];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        var option3 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent3),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData3()}]
                        };
                        var option4 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent4),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData4()}]
                        };
                        var option5 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent5),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData5()}]
                        };
                        var option6 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent6),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData6()}]
                        };
                        var option7 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent7),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData7()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData3() {
                            return [{value: percent3/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent3/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData4() {
                            return [{value: percent4/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent4/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData5() {
                            return [{value: percent5/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent5/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData6() {
                            return [{value: percent6/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent6/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData7() {
                            return [{value: percent7/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent7/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                        myChart3.setOption(option3);
                        myChart4.setOption(option4);
                        myChart5.setOption(option5);
                        myChart6.setOption(option6);
                        myChart7.setOption(option7);
                    }else if(recordsLength==7){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var myChart3 = echarts.init(document.getElementById('machinelistEchartShow3'));
                        var myChart4 = echarts.init(document.getElementById('machinelistEchartShow4'));
                        var myChart5 = echarts.init(document.getElementById('machinelistEchartShow5'));
                        var myChart6 = echarts.init(document.getElementById('machinelistEchartShow6'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var percent3 = Mpa[3];
                        var percent4 = Mpa[4];
                        var percent5 = Mpa[5];
                        var percent6 = Mpa[6];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        var option3 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent3),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData3()}]
                        };
                        var option4 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent4),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData4()}]
                        };
                        var option5 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent5),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData5()}]
                        };
                        var option6 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent6),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData6()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData3() {
                            return [{value: percent3/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent3/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData4() {
                            return [{value: percent4/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent4/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData5() {
                            return [{value: percent5/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent5/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData6() {
                            return [{value: percent6/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent6/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                        myChart3.setOption(option3);
                        myChart4.setOption(option4);
                        myChart5.setOption(option5);
                        myChart6.setOption(option6);
                    }else if(recordsLength==6){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var myChart3 = echarts.init(document.getElementById('machinelistEchartShow3'));
                        var myChart4 = echarts.init(document.getElementById('machinelistEchartShow4'));
                        var myChart5 = echarts.init(document.getElementById('machinelistEchartShow5'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var percent3 = Mpa[3];
                        var percent4 = Mpa[4];
                        var percent5 = Mpa[5];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        var option3 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent3),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData3()}]
                        };
                        var option4 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent4),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData4()}]
                        };
                        var option5 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent5),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData5()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData3() {
                            return [{value: percent3/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent3/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData4() {
                            return [{value: percent4/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent4/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData5() {
                            return [{value: percent5/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent5/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                        myChart3.setOption(option3);
                        myChart4.setOption(option4);
                        myChart5.setOption(option5);
                    }else if(recordsLength==5){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var myChart3 = echarts.init(document.getElementById('machinelistEchartShow3'));
                        var myChart4 = echarts.init(document.getElementById('machinelistEchartShow4'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var percent3 = Mpa[3];
                        var percent4 = Mpa[4];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        var option3 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent3),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData3()}]
                        };
                        var option4 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent4),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData4()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData3() {
                            return [{value: percent3/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent3/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData4() {
                            return [{value: percent4/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent4/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                        myChart3.setOption(option3);
                        myChart4.setOption(option4);
                    }else if(recordsLength==4){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var myChart3 = echarts.init(document.getElementById('machinelistEchartShow3'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var percent3 = Mpa[3];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        var option3 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent3),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData3()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData3() {
                            return [{value: percent3/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent3/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                        myChart3.setOption(option3);
                    }else if(recordsLength==3){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                    }else if(recordsLength==2){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                    }else if(recordsLength==1){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var percent0 = Mpa[0];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);

                    }else{
                        console.log(Mpa);
                    }     
                    /***chart模拟数据逻辑END***/
                    //===设备全选与单选START===
                    $(".topbarallChoosedBox").on("click",function(){
                      $(this).find("i").toggleClass("i-checked");
                      if($(this).find("i").hasClass("i-checked")){
                        $("i.sking").addClass("i-checked");
                      }else{
                        $("i.sking").removeClass("i-checked");
                      }
                      window.hadChoosedNums = document.querySelectorAll(".machinelistEtop i.i-checked").length;
                    })
                    $("body").on("click","i.sking",function(e){
                      event.preventDefault();
                      event.stopPropagation();
                      $(this).toggleClass("i-checked");
                      window.hadChoosedNums = document.querySelectorAll(".machinelistEtop i.i-checked").length;
                    })
                    //===设备全选与单选END===
                    //======统计最终勾选后的全局变量列表START======
                      window.hadChoosedNums = document.querySelectorAll(".machinelistEtop i.i-checked").length;
                    //======统计最终勾选后的全局变量列表END======


            }
        }
});

//封装模块
var getMachinelists = function(curPageNums){
//默认加载设备列表
var name = $(".machineInputNames").val();
var event_type = $(".machineSearchTypes").find("a.cur").attr("data-errorid");
$.vloading.show();
$.ajax({
        type:'POST',
        url:urls.checkMachinelist,
        dataType:'json',
        data:{token:token,name:name,pageNow:curPageNums,pageSize:"8",event_type:event_type},
        async:true,
        success:function(result){
           $.vloading.remove();
            if(result.code=="1"){
                var Mpa = [];
                var recordsLength = result.data.records.length;
                if(result.data.records.length==0){
                    $(".machineListbigBox").html('<p class="txtc" style="padding:19px 0;font-size:16px;border-right:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;border-left:1px solid #e9e9e9;">暂无数据</p>');
                }else{
                  var machineEchartHtml ='';
                  for(var i=0;i<result.data.records.length;i++){
                    //for START//
                    //在线
                    if(result.data.records[i].is_connected=="1"){
                        if(result.data.records[i].machine_status=="1"){//报警
                            machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                              <div class="machinelistEtop machineWarning"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-signal pdr5"></i></div>\n\
                              <div class="machinelistEchart">\n\
                                <div class="machinelistEchartBg">\n\
                                  <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                </div>\n\
                              </div>\n\
                              <div class="machinelistEelectric">\n\
                                <ul class="clearfix">\n\
                                  <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                  <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                  <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                </ul>\n\
                              </div>\n\
                              <div class="machinelistEcompany">\n\
                                <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                              </div>\n\
                            </div></a>';
                        }else if(result.data.records[i].machine_status=="0"){//停止
                            machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                              <div class="machinelistEtop machineStop"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-signal pdr5"></i></div>\n\
                              <div class="machinelistEchart">\n\
                                <div class="machinelistEchartBg">\n\
                                  <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                </div>\n\
                              </div>\n\
                              <div class="machinelistEelectric">\n\
                                <ul class="clearfix">\n\
                                  <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                  <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                  <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                </ul>\n\
                              </div>\n\
                              <div class="machinelistEcompany">\n\
                                <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                              </div>\n\
                            </div></a>';
                        }else{//2-7均属运行状态
                            machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                              <div class="machinelistEtop machineOnline"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-signal pdr5"></i></div>\n\
                              <div class="machinelistEchart">\n\
                                <div class="machinelistEchartBg">\n\
                                  <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                </div>\n\
                              </div>\n\
                              <div class="machinelistEelectric">\n\
                                <ul class="clearfix">\n\
                                  <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                  <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                  <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                </ul>\n\
                              </div>\n\
                              <div class="machinelistEcompany">\n\
                                <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                              </div>\n\
                            </div></a>';                          

                        }
                    }if(result.data.records[i].is_connected=="0"){//离线
                        if(result.data.records[i].machine_status=="1"){//报警
                            machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                              <div class="machinelistEtop machineWarning"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-nosignal pdr5"></i></div>\n\
                              <div class="machinelistEchart">\n\
                                <div class="machinelistEchartBg">\n\
                                  <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                </div>\n\
                              </div>\n\
                              <div class="machinelistEelectric">\n\
                                <ul class="clearfix">\n\
                                  <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                  <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                  <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                </ul>\n\
                              </div>\n\
                              <div class="machinelistEcompany">\n\
                                <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                              </div>\n\
                            </div></a>';
                        }else if(result.data.records[i].machine_status=="0"){//停止
                            machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                              <div class="machinelistEtop machineStop"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-nosignal pdr5"></i></div>\n\
                              <div class="machinelistEchart">\n\
                                <div class="machinelistEchartBg">\n\
                                  <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                </div>\n\
                              </div>\n\
                              <div class="machinelistEelectric">\n\
                                <ul class="clearfix">\n\
                                  <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                  <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                  <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                </ul>\n\
                              </div>\n\
                              <div class="machinelistEcompany">\n\
                                <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                              </div>\n\
                            </div></a>';
                        }else{//2-7均属运行状态
                            machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                              <div class="machinelistEtop machineOnline"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-nosignal pdr5"></i></div>\n\
                              <div class="machinelistEchart">\n\
                                <div class="machinelistEchartBg">\n\
                                  <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                </div>\n\
                              </div>\n\
                              <div class="machinelistEelectric">\n\
                                <ul class="clearfix">\n\
                                  <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                  <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                  <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                </ul>\n\
                              </div>\n\
                              <div class="machinelistEcompany">\n\
                                <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                              </div>\n\
                            </div></a>';              

                        }
                    }
                    if(result.data.records[i].pressure==undefined){
                        console.log("now pressure is:"+result.data.records[i].pressure);
                        Mpa.push("0.00");
                    }else{
                        Mpa.push(result.data.records[i].pressure);
                    }
                    //for END//
                    
                }
              }

                $(".machineListbigBox").html(machineEchartHtml);
                //总记录数
                $(".allRecord").html(result.data.rowCount);
                $(".eachpageshowNums").html("8");
                $(".allpagesNums").html(result.data.pageCount);
                    /***chart模拟数据逻辑START***/
                    if(recordsLength==8){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var myChart3 = echarts.init(document.getElementById('machinelistEchartShow3'));
                        var myChart4 = echarts.init(document.getElementById('machinelistEchartShow4'));
                        var myChart5 = echarts.init(document.getElementById('machinelistEchartShow5'));
                        var myChart6 = echarts.init(document.getElementById('machinelistEchartShow6'));
                        var myChart7 = echarts.init(document.getElementById('machinelistEchartShow7'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var percent3 = Mpa[3];
                        var percent4 = Mpa[4];
                        var percent5 = Mpa[5];
                        var percent6 = Mpa[6];
                        var percent7 = Mpa[7];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        var option3 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent3),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData3()}]
                        };
                        var option4 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent4),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData4()}]
                        };
                        var option5 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent5),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData5()}]
                        };
                        var option6 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent6),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData6()}]
                        };
                        var option7 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent7),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData7()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData3() {
                            return [{value: percent3/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent3/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData4() {
                            return [{value: percent4/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent4/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData5() {
                            return [{value: percent5/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent5/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData6() {
                            return [{value: percent6/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent6/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData7() {
                            return [{value: percent7/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent7/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                        myChart3.setOption(option3);
                        myChart4.setOption(option4);
                        myChart5.setOption(option5);
                        myChart6.setOption(option6);
                        myChart7.setOption(option7);
                    }else if(recordsLength==7){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var myChart3 = echarts.init(document.getElementById('machinelistEchartShow3'));
                        var myChart4 = echarts.init(document.getElementById('machinelistEchartShow4'));
                        var myChart5 = echarts.init(document.getElementById('machinelistEchartShow5'));
                        var myChart6 = echarts.init(document.getElementById('machinelistEchartShow6'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var percent3 = Mpa[3];
                        var percent4 = Mpa[4];
                        var percent5 = Mpa[5];
                        var percent6 = Mpa[6];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        var option3 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent3),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData3()}]
                        };
                        var option4 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent4),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData4()}]
                        };
                        var option5 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent5),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData5()}]
                        };
                        var option6 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent6),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData6()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData3() {
                            return [{value: percent3/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent3/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData4() {
                            return [{value: percent4/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent4/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData5() {
                            return [{value: percent5/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent5/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData6() {
                            return [{value: percent6/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent6/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                        myChart3.setOption(option3);
                        myChart4.setOption(option4);
                        myChart5.setOption(option5);
                        myChart6.setOption(option6);
                    }else if(recordsLength==6){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var myChart3 = echarts.init(document.getElementById('machinelistEchartShow3'));
                        var myChart4 = echarts.init(document.getElementById('machinelistEchartShow4'));
                        var myChart5 = echarts.init(document.getElementById('machinelistEchartShow5'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var percent3 = Mpa[3];
                        var percent4 = Mpa[4];
                        var percent5 = Mpa[5];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        var option3 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent3),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData3()}]
                        };
                        var option4 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent4),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData4()}]
                        };
                        var option5 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent5),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData5()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData3() {
                            return [{value: percent3/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent3/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData4() {
                            return [{value: percent4/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent4/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData5() {
                            return [{value: percent5/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent5/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                        myChart3.setOption(option3);
                        myChart4.setOption(option4);
                        myChart5.setOption(option5);
                    }else if(recordsLength==5){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var myChart3 = echarts.init(document.getElementById('machinelistEchartShow3'));
                        var myChart4 = echarts.init(document.getElementById('machinelistEchartShow4'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var percent3 = Mpa[3];
                        var percent4 = Mpa[4];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        var option3 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent3),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData3()}]
                        };
                        var option4 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent4),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData4()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData3() {
                            return [{value: percent3/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent3/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData4() {
                            return [{value: percent4/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent4/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                        myChart3.setOption(option3);
                        myChart4.setOption(option4);
                    }else if(recordsLength==4){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var myChart3 = echarts.init(document.getElementById('machinelistEchartShow3'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var percent3 = Mpa[3];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        var option3 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent3),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData3()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData3() {
                            return [{value: percent3/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent3/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                        myChart3.setOption(option3);
                    }else if(recordsLength==3){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                    }else if(recordsLength==2){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                    }else if(recordsLength==1){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var percent0 = Mpa[0];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);

                    }else{
                        console.log(Mpa);
                    }     
                    /***chart模拟数据逻辑END***/


            }
        }
});    
}


//分页器optional set
//事件监听分页触发时，获得当前页码数
pageNav.pre="上一页";
pageNav.next="下一页";


//========设备搜索/快捷视图查询搜索START========
$(".StartSearchMachies,.machineSErrorEach").on("click",function(e){
  //点击搜索设备列表加载START
var name = $(".machineInputNames").val();
if(e.currentTarget.className=="machineSErrorEach"){
  $(this).addClass("cur").siblings().removeClass("cur");
  $(".StartSearchMachies").attr("data-id",2);
}else{
  $(".StartSearchMachies").attr("data-id",1);
}
var event_type = $(".machineSearchTypes").find("a.cur").attr("data-errorid");
$.vloading.show();
$.ajax({
        type:'POST',
        url:urls.checkMachinelist,
        dataType:'json',
        data:{token:token,name:name,pageNow:1,pageSize:"8",event_type:event_type},
        async:true,
        success:function(result){
           $.vloading.remove();
            if(result.code=="1"){
                var Mpa = [];
                var recordsLength = result.data.records.length;
                if(result.data.records.length==0){
                  $(".machineListbigBox").html('<p class="txtc" style="padding:19px 0;font-size:16px;border-right:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;border-left:1px solid #e9e9e9;">暂无数据</p>');
                }else{
                  var machineEchartHtml ='';
                  for(var i=0;i<result.data.records.length;i++){
                      //for START//
                      //在线
                      if(result.data.records[i].is_connected=="1"){
                          if(result.data.records[i].machine_status=="1"){//报警
                              machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                                <div class="machinelistEtop machineWarning"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-signal pdr5"></i></div>\n\
                                <div class="machinelistEchart">\n\
                                  <div class="machinelistEchartBg">\n\
                                    <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                  </div>\n\
                                </div>\n\
                                <div class="machinelistEelectric">\n\
                                  <ul class="clearfix">\n\
                                    <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                    <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                    <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                  </ul>\n\
                                </div>\n\
                                <div class="machinelistEcompany">\n\
                                  <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                                </div>\n\
                              </div></a>';
                          }else if(result.data.records[i].machine_status=="0"){//停止
                              machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                                <div class="machinelistEtop machineStop"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-signal pdr5"></i></div>\n\
                                <div class="machinelistEchart">\n\
                                  <div class="machinelistEchartBg">\n\
                                    <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                  </div>\n\
                                </div>\n\
                                <div class="machinelistEelectric">\n\
                                  <ul class="clearfix">\n\
                                    <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                    <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                    <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                  </ul>\n\
                                </div>\n\
                                <div class="machinelistEcompany">\n\
                                  <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                                </div>\n\
                              </div></a>';
                          }else{//2-7均属运行状态
                              machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                                <div class="machinelistEtop machineOnline"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-signal pdr5"></i></div>\n\
                                <div class="machinelistEchart">\n\
                                  <div class="machinelistEchartBg">\n\
                                    <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                  </div>\n\
                                </div>\n\
                                <div class="machinelistEelectric">\n\
                                  <ul class="clearfix">\n\
                                    <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                    <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                    <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                  </ul>\n\
                                </div>\n\
                                <div class="machinelistEcompany">\n\
                                  <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                                </div>\n\
                              </div></a>';                           

                          }
                      }if(result.data.records[i].is_connected=="0"){//离线
                          if(result.data.records[i].machine_status=="1"){//报警
                              machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                                <div class="machinelistEtop machineWarning"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-nosignal pdr5"></i></div>\n\
                                <div class="machinelistEchart">\n\
                                  <div class="machinelistEchartBg">\n\
                                    <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                  </div>\n\
                                </div>\n\
                                <div class="machinelistEelectric">\n\
                                  <ul class="clearfix">\n\
                                    <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                    <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                    <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                  </ul>\n\
                                </div>\n\
                                <div class="machinelistEcompany">\n\
                                  <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                                </div>\n\
                              </div></a>';
                          }else if(result.data.records[i].machine_status=="0"){//停止
                              machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                                <div class="machinelistEtop machineStop"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-nosignal pdr5"></i></div>\n\
                                <div class="machinelistEchart">\n\
                                  <div class="machinelistEchartBg">\n\
                                    <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                  </div>\n\
                                </div>\n\
                                <div class="machinelistEelectric">\n\
                                  <ul class="clearfix">\n\
                                    <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                    <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                    <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                  </ul>\n\
                                </div>\n\
                                <div class="machinelistEcompany">\n\
                                  <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                                </div>\n\
                              </div></a>';
                          }else{//2-7均属运行状态
                              machineEchartHtml +='<a href="machineDetails.html?dtuid='+result.data.records[i].dtu_id+'"><div class="machinelistEach fl">\n\
                                <div class="machinelistEtop machineOnline"><i class="xwl i-checkno pdr5 sking"></i>编码<span class="machineBianma">'+result.data.records[i].dtu_id+'</span><i class="xwl i-nosignal pdr5"></i></div>\n\
                                <div class="machinelistEchart">\n\
                                  <div class="machinelistEchartBg">\n\
                                    <div id="machinelistEchartShow'+i+'" class="machEchartInherit mgc"></div>\n\
                                  </div>\n\
                                </div>\n\
                                <div class="machinelistEelectric">\n\
                                  <ul class="clearfix">\n\
                                    <li><p><span>'+result.data.records[i].pressure+'</span>Mpa</p>压力</li>\n\
                                    <li><p><span>'+result.data.records[i].temperature+'</span>℃</p>温度</li>\n\
                                    <li><p><span>'+result.data.records[i].zjbpq_outdl+'</span>A</p>电流</li>\n\
                                  </ul>\n\
                                </div>\n\
                                <div class="machinelistEcompany">\n\
                                  <em class="oellipsis">'+result.data.records[i].customer_name+'</em>\n\
                                <div class="hoverShowboxs"><p class="clearfix oellipsis"><span class="fl">编号：<i>'+result.data.records[i].device_no+'</i></span><span class="fr">型号：<i>'+result.data.records[i].device_name+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">通讯卡：<i>'+result.data.records[i].sim_no+'</i></span><span class="fr">功率：<i>'+result.data.records[i].power+'</i></span></p>\n\
                                <p class="clearfix oellipsis"><span class="fl">创建者：<i>'+result.data.records[i].userName+'</i></span></p><p class="clearfix oellipsis"><span class="fl">创建期：<i>'+result.data.records[i].create_date+'</i></span></p><p class="seeMoreParams nosee"><span>控制器编号：<i class="seeMoreParams-A">'+result.data.records[i].dtu_id+'</i></span><span>控制器类型：<i class="seeMoreParams-B">'+result.data.records[i].type_id+'</i></span><span>创建者：<i class="seeMoreParams-C">'+result.data.records[i].user_id+'</i></span><span>行业：<i class="seeMoreParams-D">'+result.data.records[i].industry+'</i></span><span>备注：<i class="seeMoreParams-E">'+result.data.records[i].remark+'</i></span><span>设备ID：<i class="seeMoreParams-F">'+result.data.records[i].device_id+'</i></span></p></div>\n\
                                </div>\n\
                              </div></a>';

                          }
                      }
                      if(result.data.records[i].pressure==undefined){
                          console.log("now pressure is:"+result.data.records[i].pressure);
                          Mpa.push("0.00");
                      }else{
                          Mpa.push(result.data.records[i].pressure);
                      }
                      //for END//
                      
                  }                  
                }

                $(".machineListbigBox").html(machineEchartHtml);

                pageNav.go(1,result.data.pageCount);
                pageNav.fn = function(p,pn){
                  if($(".StartSearchMachies").attr("data-id")==1){
                     getMachinelists(p);
                     return;                   
                   }if($(".StartSearchMachies").attr("data-id")==2){
                      getMachinelists(p);
                      return;
                   }

                };
                //总记录数
                $(".allRecord").html(result.data.rowCount);
                $(".eachpageshowNums").html("8");
                $(".allpagesNums").html(result.data.pageCount);


                    /***chart模拟数据逻辑START***/
                    if(recordsLength==8){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var myChart3 = echarts.init(document.getElementById('machinelistEchartShow3'));
                        var myChart4 = echarts.init(document.getElementById('machinelistEchartShow4'));
                        var myChart5 = echarts.init(document.getElementById('machinelistEchartShow5'));
                        var myChart6 = echarts.init(document.getElementById('machinelistEchartShow6'));
                        var myChart7 = echarts.init(document.getElementById('machinelistEchartShow7'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var percent3 = Mpa[3];
                        var percent4 = Mpa[4];
                        var percent5 = Mpa[5];
                        var percent6 = Mpa[6];
                        var percent7 = Mpa[7];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        var option3 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent3),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData3()}]
                        };
                        var option4 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent4),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData4()}]
                        };
                        var option5 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent5),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData5()}]
                        };
                        var option6 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent6),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData6()}]
                        };
                        var option7 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent7),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData7()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData3() {
                            return [{value: percent3/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent3/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData4() {
                            return [{value: percent4/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent4/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData5() {
                            return [{value: percent5/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent5/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData6() {
                            return [{value: percent6/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent6/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData7() {
                            return [{value: percent7/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent7/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                        myChart3.setOption(option3);
                        myChart4.setOption(option4);
                        myChart5.setOption(option5);
                        myChart6.setOption(option6);
                        myChart7.setOption(option7);
                    }else if(recordsLength==7){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var myChart3 = echarts.init(document.getElementById('machinelistEchartShow3'));
                        var myChart4 = echarts.init(document.getElementById('machinelistEchartShow4'));
                        var myChart5 = echarts.init(document.getElementById('machinelistEchartShow5'));
                        var myChart6 = echarts.init(document.getElementById('machinelistEchartShow6'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var percent3 = Mpa[3];
                        var percent4 = Mpa[4];
                        var percent5 = Mpa[5];
                        var percent6 = Mpa[6];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        var option3 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent3),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData3()}]
                        };
                        var option4 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent4),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData4()}]
                        };
                        var option5 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent5),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData5()}]
                        };
                        var option6 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent6),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData6()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData3() {
                            return [{value: percent3/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent3/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData4() {
                            return [{value: percent4/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent4/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData5() {
                            return [{value: percent5/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent5/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData6() {
                            return [{value: percent6/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent6/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                        myChart3.setOption(option3);
                        myChart4.setOption(option4);
                        myChart5.setOption(option5);
                        myChart6.setOption(option6);
                    }else if(recordsLength==6){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var myChart3 = echarts.init(document.getElementById('machinelistEchartShow3'));
                        var myChart4 = echarts.init(document.getElementById('machinelistEchartShow4'));
                        var myChart5 = echarts.init(document.getElementById('machinelistEchartShow5'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var percent3 = Mpa[3];
                        var percent4 = Mpa[4];
                        var percent5 = Mpa[5];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        var option3 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent3),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData3()}]
                        };
                        var option4 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent4),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData4()}]
                        };
                        var option5 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent5),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData5()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData3() {
                            return [{value: percent3/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent3/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData4() {
                            return [{value: percent4/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent4/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData5() {
                            return [{value: percent5/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent5/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                        myChart3.setOption(option3);
                        myChart4.setOption(option4);
                        myChart5.setOption(option5);
                    }else if(recordsLength==5){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var myChart3 = echarts.init(document.getElementById('machinelistEchartShow3'));
                        var myChart4 = echarts.init(document.getElementById('machinelistEchartShow4'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var percent3 = Mpa[3];
                        var percent4 = Mpa[4];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        var option3 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent3),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData3()}]
                        };
                        var option4 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent4),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData4()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData3() {
                            return [{value: percent3/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent3/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData4() {
                            return [{value: percent4/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent4/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                        myChart3.setOption(option3);
                        myChart4.setOption(option4);
                    }else if(recordsLength==4){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var myChart3 = echarts.init(document.getElementById('machinelistEchartShow3'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var percent3 = Mpa[3];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        var option3 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent3),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData3()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData3() {
                            return [{value: percent3/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent3/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                        myChart3.setOption(option3);
                    }else if(recordsLength==3){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var myChart2 = echarts.init(document.getElementById('machinelistEchartShow2'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var percent2 = Mpa[2];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        var option2 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent2),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData2()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData2() {
                            return [{value: percent2/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent2/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                        myChart2.setOption(option2);
                    }else if(recordsLength==2){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var myChart1 = echarts.init(document.getElementById('machinelistEchartShow1'));
                        var percent0 = Mpa[0];
                        var percent1 = Mpa[1];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        var option1 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent1),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData1()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        function getData1() {
                            return [{value: percent1/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent1/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);
                        myChart1.setOption(option1);
                    }else if(recordsLength==1){
                        var myChart0 = echarts.init(document.getElementById('machinelistEchartShow0'));
                        var percent0 = Mpa[0];
                        var dataStyle = {normal: {label: {show:false},labelLine: {show:false}}};
                        var option0 = {
                            backgroundColor: 'rgba(0,0,0,0)',
                            title: {text: (percent0),subtext: 'Mpa',x: 'center',y: '26%',textStyle: {color: '#596679',fontSize: 20,fontWeight: 'normal'},subtextStyle: {color: '#666',fontSize: 14}},
                            series : [{name: 'main',type: 'pie',radius: [47, 36],hoverAnimation: false,label: {normal: {show: false}},data: getData0()}]
                        };
                        function getData0() {
                            return [{value: percent0/2,itemStyle:{normal:{color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: '#7388d7'}, {offset: 1,color: '#d12977'}])}}}, {value: 1 - percent0/2,itemStyle: {normal: {color: 'transparent'}}}];
                        };
                        myChart0.setOption(option0);

                    }else{
                        console.log(Mpa);
                    }     
                    /***chart模拟数据逻辑END***/


            }
        }
});
  //END
})

//========设备搜索/快捷视图查询搜索END========


getOnelayerMenu();
getTwolayerMenu(201,202);
$(".mianshowbpt-r a").eq(0).addClass("cur");
getThreelayerMenu(202);




$(".encryptionTypesTopbar a").on("click",function(){
  $(this).addClass("cur").siblings().removeClass("cur");
})


//========设备分享SATRT========
$(".machineShares").on("click",function(){
  if(hadChoosedNums==0){
      $.flytip("请选择要分享的设备");
      return false;
    }else{
      $(".mchinesShareBox,.masking").fadeIn();
      $(".deviShareSure").unbind("click").click(function(){
          var dtu_ids = [];
          var AllDevicesNums = document.querySelectorAll(".sking");
          for(var i=0;i<AllDevicesNums.length;i++){
            if($(".sking").eq(i).hasClass("i-checked")){
              dtu_ids.push($(".sking").eq(i).parent(".machinelistEtop").siblings(".machinelistEcompany").find(".hoverShowboxs").find("p.seeMoreParams").find("span").eq(0).find(".seeMoreParams-A").html());
            }
          }
          var tel = $(".sharingTel").val();
          var shareStatus = $(".encryptionTypesTopbar a.cur").attr("data-shareStatus");
          var shareUser = localStorage.getItem("dengluzhe_id");
          var dtuIds=dtu_ids.join(",");
          if(tel==""){
            $.flytip("请填写手机号码");
            return false;
          }else if(! (/^1[3|4|5|7|8]\d{9}$/.test(tel))){
            $.flytip("手机号码格式有误");
            return false;
          }else{
            $.post(urls.shareDevices,{token:token,shareUser:shareUser,dtuIds:dtuIds,shareStatus:shareStatus,accountName:tel}, 
                function(result){
                    if(result.code == "1"){
                        $.flytip(result.msg);
                        setTimeout('$(".mchinesShareBox,.masking").fadeOut()',1000);
                    }else{
                        $.flytip(result.msg);
                    }

                },"json");
          }
      })
      

    } 

})
//========设备分享END=====
event.stopPropagation();
//=====设备新增START=====
$(".newMachineAdds").on("click",function(){
  $(".devicesxinZeng,.masking").fadeIn();
  //获取控制器类型
  $.post(urls.getDeviceCTRlists,{token:token,pageNow:1,pageSize:100,typeName:""}, 
  function(result){
      if(result.code == "1"){
          var kzqTypesXZHtml = '';
          for(var i=0;i<result.data.records.length;i++){
              kzqTypesXZHtml +='<option value ="'+result.data.records[i].id+'">'+result.data.records[i].typeName+'</option>';
          }
          $(".kzqTypesXZ").html(kzqTypesXZHtml);
      }else{
          $.flytip(result.msg);
      }

  },"json");
  //获取创建者（所有），新增账号情况下，默认创建者ID为当前登陆者的ID
  $.post(urls.getAccoutlists,{token:token,pageNow:1,pageSize:10000}, 
  function(result){
      if(result.code == "1"){
          var cjzXZHtml = '<option value ="'+localStorage.getItem("dengluzhe_id")+'">'+localStorage.getItem("userName")+'</option>';
          for(var i=0;i<result.data.records.length;i++){
              cjzXZHtml +='<option value ="'+result.data.records[i].id+'">'+result.data.records[i].userName+'</option>';
          }
          $(".cjzXZ").html(cjzXZHtml);
      }else{
          $.flytip(result.msg);
      }

  },"json"); 
  //提交
  $(".deviceSureXZ").unbind("click").click(function(){
    var dtu_id = $(".kzqbhXZ").val();//控制器编号
    var customer_name = $(".khNamesXZ").val();
    var device_no = $(".sbbhXZ").val();
    var remark = $(".bzxxXZ").val();
    var user_id = $(".cjzXZ").val();
    var type_id = $(".kzqTypesXZ").val();//控制器类型
    var create_date = $(".startDate").val();
    var industry = $(".khhyXZ").val();
    var power = $(".sbglXZ").val();
    var device_name = $(".sbxhXZ").val();
      if(customer_name==""){
        $.flytip("请填写客户名称");
        return false;
      }else if(dtu_id==""){
        $.flytip("请填写控制器编号");
        return false;
      }else if(type_id==""){
        $.flytip("请填写控制器类型");
        return false;
      }else{
        $.vloading.show();
        $.post(urls.addNewDevices,{token:token,dtu_id:dtu_id,customer_name:customer_name,device_no:device_no,remark:remark,user_id:user_id,type_id:type_id,create_date:create_date,industry:industry,power:power,device_name:device_name}, 
        function(result){
            $.vloading.remove();
            if(result.code == "1"){
                $.flytip(result.msg);
                setTimeout('$(".machineCommonBoxs,.masking").fadeOut();window.location.reload();',1600);
            }else{
                $.flytip(result.msg);
            }

        },"json");
      }           
  })

})

//=====设备新增END=====


//=====设备编辑START=====
$(".machineEdits").on("click",function(){
  if(hadChoosedNums>1||hadChoosedNums==0){
    $.flytip("请选择一个设备编辑");
    return false;//
  }else{
      var curIndexs = $(".i-checked").parent(".machinelistEtop").parent(".machinelistEach").index();//获取被选中的那个设备的index索引值
      $(".khNamesBJ").val($(".machinelistEcompany").eq(curIndexs).find("em").html());//客户名
      $(".sbxhBJ").val($(".hoverShowboxs").eq(curIndexs).find("p").eq(0).find("span").eq(1).find("i").html());//设备型号
      $(".sbbhBJ").val($(".hoverShowboxs").eq(curIndexs).find("p").eq(0).find("span").eq(0).find("i").html());//设备编号
      $(".sbglBJ").val($(".hoverShowboxs").eq(curIndexs).find("p").eq(1).find("span").eq(1).find("i").html());//设备功率

      $(".kzqbhBJ").val($(".seeMoreParams-A").eq(curIndexs).html());//控制器编号
      var kzqTypesids = $(".seeMoreParams-B").eq(curIndexs).html();//控制器类型id
      var cjzids = $(".seeMoreParams-C").eq(curIndexs).html();//创建者id
      $(".khhyBJ").val($(".seeMoreParams-D").eq(curIndexs).html());//行业
      $(".bzxxBJ").val($(".seeMoreParams-E").eq(curIndexs).html());//备注
      var devices_id = $(".seeMoreParams-F").eq(curIndexs).html();//设备id(全局唯一)

      $(".devicesbianJi,.masking").fadeIn();
      //获取控制器类型
      $.post(urls.getDeviceCTRlists,{token:token,pageNow:1,pageSize:100,typeName:""},
      function(result){
          if(result.code == "1"){
              var kzqTypesXZHtml = '';
              for(var i=0;i<result.data.records.length;i++){
                if(result.data.records[i].id==kzqTypesids){
                  kzqTypesXZHtml +='<option value ="'+result.data.records[i].id+'" selected="selected">'+result.data.records[i].typeName+'</option>';
                }else{
                  kzqTypesXZHtml +='<option value ="'+result.data.records[i].id+'">'+result.data.records[i].typeName+'</option>';
                }
              }
              $(".kzqTypesBJ").html(kzqTypesXZHtml);
          }else{
              $.flytip(result.msg);
          }

      },"json");
      //获取创建者（所有），新增账号情况下，默认创建者ID为当前登陆者的ID
      $.post(urls.getAccoutlists,{token:token,pageNow:1,pageSize:10000}, 
      function(result){
          if(result.code == "1"){
              var cjzXZHtml = '<option value ="'+localStorage.getItem("dengluzhe_id")+'">'+localStorage.getItem("userName")+'</option>';
              for(var i=0;i<result.data.records.length;i++){
                  if(result.data.records[i].id==cjzids){
                    cjzXZHtml +='<option value ="'+result.data.records[i].id+'" selected="selected">'+result.data.records[i].userName+'</option>';
                  }else{
                    cjzXZHtml +='<option value ="'+result.data.records[i].id+'">'+result.data.records[i].userName+'</option>';
                  }
                  
              }
              $(".cjzBJ").html(cjzXZHtml);
          }else{
              $.flytip(result.msg);
          }

      },"json");

      //===用户编辑提交后设备所有信息START===
      $(".deviceSureBJ").unbind("click").click(function(){
          var dtu_id = $(".kzqbhBJ").val();//控制器编号id  
          var customer_name = $(".khNamesBJ").val();//客户名称
          var device_no = $(".sbbhBJ").val();//设备编号
          var remark = $(".bzxxBJ").val();//备注
          var user_id = $(".cjzBJ").val();//创建者id
          var type_id = $(".kzqTypesBJ").val();//控制器类型id
          var industry = $(".khhyBJ").val();//行业
          var device_id = devices_id;//设备id
          var power = $(".sbglBJ").val();//功率
          var device_name = $(".sbxhBJ").val();//设备型号
          var user_text = $(".cjzBJ").find("option:selected").text();//创建者文本内容
          $.vloading.show(); 
          $.post(urls.editDevices,{token:token,dtu_id:dtu_id,customer_name:customer_name,device_no:device_no,remark:remark,user_id:user_id,type_id:type_id,industry:industry,device_id:device_id,power:power,device_name:device_name}, 
            function(result){
                if(result.code == "1"){
                    $.vloading.remove();
                    //Synchronous update view
                    $(".machinelistEcompany").eq(curIndexs).find("em").html(customer_name);
                    $(".hoverShowboxs").eq(curIndexs).find("p").eq(0).find("span").eq(0).find("i").html(device_no);
                    $(".hoverShowboxs").eq(curIndexs).find("p").eq(0).find("span").eq(1).find("i").html(device_name);
                    $(".hoverShowboxs").eq(curIndexs).find("p").eq(1).find("span").eq(1).find("i").html(power);
                    $(".hoverShowboxs").eq(curIndexs).find("p").eq(2).find("span").eq(0).find("i").html(user_text);
                    $.flytip(result.msg);
                    setTimeout('$(".devicesbianJi,.masking").fadeOut()',1000);
                }else{
                    $.flytip(result.msg);
                    $.vloading.remove();
                }

            },"json");

      })

      //===用户编辑提交后设备所有信息END===

  }
})
//=====设备编辑END=====

//=====设备删除START===
$(".machineDels").on("click",function(){
  if(hadChoosedNums==0){
      $.flytip("请选择要删除的设备");
      return false;
    }else{
      $("#closeMasking,.ifSureDeleMachines").show();
      $(".ifSureDeleMachinesBTN").unbind("click").click(function(){
        var dtu_ids = [];
        var AllDevicesNums = document.querySelectorAll(".sking");
        for(var i=0;i<AllDevicesNums.length;i++){
          if($(".sking").eq(i).hasClass("i-checked")){
            dtu_ids.push($(".sking").eq(i).parent(".machinelistEtop").siblings(".machinelistEcompany").find(".hoverShowboxs").find("p.seeMoreParams").find("span").eq(0).find(".seeMoreParams-A").html());
          }
        }
        $.post(urls.delsDevices,{token:token,dtu_id:dtu_ids.join(",")}, 
          function(result){
              if(result.code == "1"){
                  $.vloading.remove();
                  $(".machineListbigBox").find(".i-checked").parent(".machinelistEtop").parent(".machinelistEach").parent("a").remove();
                  $.flytip(result.msg);
                  $("#closeMasking,.ifSureDeleMachines").hide();
                  if($(".machinelistEtop").length==0){
                    window.location.reload();
                  }
                  window.hadChoosedNums = document.querySelectorAll(".machinelistEtop i.i-checked").length;

              }else{
                  $.flytip(result.msg);
                  $.vloading.remove();
              }

          },"json");
        
      })


    }  
})

//=====设备删除END====

$(".deviceCancelXZ,.closeLayerbox,.deviShareCancel,.deviceCancelBJ").click(function(){
  $(".machineCommonBoxs,.machineCommonBoxs,.mchinesShareBox,.ifSureDeleMachines,.masking").fadeOut();
})


//======设备列表快捷视图查询SATRT======
$.post(urls.fastViewDevices,{token:token}, 
  function(result){
      if(result.code == "1"){
        //1:保养事件,2:预警事件,3:报警事件,4:其他事件,5:隐藏事件
        $(".msTypes-allcount").html(result.data.device);
        $(".msTypes-yby").html(result.data.beforehand_maintain);
        $(".msTypes-by").html(result.data.maintain);
        $(".msTypes-bj").html(result.data.alarm);
        $(".msTypes-cfh").html(result.data.overpressure);
        $(".msTypes-yj").html(result.data.beforehand_warning);
      }else{
          $.flytip(result.msg);
      }

  },"json");
//======设备列表快捷视图查询END======

$(".machinelistEcompany").live("hover",function(){
 $(this).find(".hoverShowboxs").slideToggle(100); 
})

//个人中心下拉
$("#showmyAccountMenu").toggle(
    function(){$("#toggleshowmenu").show();},
    function(){$("#toggleshowmenu").hide();}
);
//关闭提示
$(".closeMachineWarnTips").click(function(){
  $(".machinelistwarmTips").slideToggle();
})
//$.flytip("zhowdom");$.vloading.show();$.vloading.remove();


//req.js end
})